package com.day01;

public class Testswimming {
    public static void main(String[] args) {
        Swimming s = getSwim();
        s.swim();
    }

    public static Swimming getSwim() {
        Swimming s = new Swimming() {
            public void swim() {
                System.out.println("...");
            }
        };
        return s;
    }

    interface Swimming {
        void swim();
    }
}
